package com.jic.product.service;

import com.jic.common.base.vo.Page;
import com.jic.common.base.vo.PageResult;
import com.jic.common.base.vo.RestResult;
import com.jic.product.entity.ProductUploadException;
import com.jic.product.manage.request.ProductUploadExceptionRequest;
import com.jic.product.manage.response.ProductUploadExceptionResponse;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
* 商品导入异常
* @author : 
* @email : 
* @since : 2020-04-27 02:26:45
* @version : v1.0.0
*/
public interface ProductUploadExceptionService {

    long insert(ProductUploadException productUploadException);

    long delete(Long id);

    long update(ProductUploadException productUploadException);

    ProductUploadException queryByPrimaryKey(Long id);

    List<ProductUploadException> query(ProductUploadException productUploadException);

    RestResult<PageResult<ProductUploadExceptionResponse>> queryPage(ProductUploadExceptionRequest form,Page pageQuery);

    RestResult batchUploadProduct(String fileName,MultipartFile file,Long categoryId,Integer typeOfProduct,Integer type,Long deptId) throws Exception;

}